package com.atguigu.servicebase.exceptionhandler;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
//生成有参数构造方法
@AllArgsConstructor
//生成无惨构造方法
@NoArgsConstructor
public class GuLiException extends RuntimeException {

    //状态码
    private Integer code;
    //异常信息
    private String mag;

    @Override
    public String toString() {
        return "GuLiException{" +
                "code=" + code +
                ", mag='" + mag + '\'' +
                '}';
    }

}
